<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员登录 - ${site.name} - Powered by JEECMS</title>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="/${res}/css/index.css" />

<!--[if lt IE 9]> 
<script src="/${res}/js/html5shiv.min.js"></script>
<script src="/${res}/js/respond.min.js"></script>
<![endif]-->

<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>

</head>

<body style="background-color:#f7f7f7;">
[#include "include/top.html"/]
[#include "include/header.html"/] 
<div class="register-box login-box">   
   [#if loginSource??]
        <div class="login-source">
   	[#if loginSource=="needPerm"]
   	 该文章需要会员登录后才能浏览！
   	[#elseif loginSource=="charge"]
   	 该文章是收费文章，需要会员登录付费后才能浏览！
   	[/#if]
         </div>
   [/#if] 
  <div class="register-nav"><span>会员登录</span><div class="register-login">没有账号，<a class="tc" href="${base}/register.jspx">立即注册 ></a></div></div> 
  <form id="jvForm" action="${base}/login.jspx" method="post">
      <div class="inf-message">
      [#if message??]
            
				[#if message=="true"]
				您必须登录后才能继续刚才的操作
				[#else]
				${message}
				[/#if]
				<input type="hidden" name="message" value="${message}"/>
                   
				[/#if]	
                  		
				[#if processUrl??]<input type="hidden" name="processUrl" value="${processUrl}"/>[/#if]
				[#if returnUrl??]<input type="hidden" name="returnUrl" value="${returnUrl}"/>[#else]<input type="hidden" name="returnUrl" value="/"/>[/#if]
				[#if error??]
				<div class="error-message">
						[#if error=="org.apache.shiro.authc.IncorrectCredentialsException"]
						[@s.m "error.invalidPassword"/]
						[#elseif error=="org.apache.shiro.authc.UnknownAccountException"]
						[@s.m "error.usernameNotExist"/]
						[#elseif error=="com.bus.common.security.CaptchaErrorException"]
						[@s.m "error.invalidCaptcha"/]
						[#elseif error=="com.bus.common.security.DisabledException"]
						[@s.m "error.userDisabled"/]
						[#elseif error=="com.bus.common.security.InactiveException"]
						[@s.m "error.userInActive"/]
						[#elseif error=="com.bus.common.security.UserUnCheckedException"]
						[@s.m "error.userUnChecked"/]
 						[/#if]
				</div>	
				[/#if]
				[#if success??]
				[#if success]
					注册成功！
				[/#if]
    
      [/#if]
  </div>
      <div class="username-con"><i></i><input id="username" name="username" class="required login-input" type="text" placeholder="用户名"></div>
      <div class="password-con"><i></i><input id="password" name="password" class="required password-input" type="password" placeholder="密码"></div>
      <div class="captcha-con clearfix"><i></i><input type="text" id="captcha" name="captcha" class="required login-input" placeholder="验证码"/><img src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()*1" /></div>
    <div class="login-rem clearfix">
      <div class="next-day"><input type="checkbox" class="login-checkbox"  value="true" name="rememberMe">下次自动登录</div>
      <a href="${base}/member/forgot_password.jspx">忘记密码</a>
    </div>
    <input type="hidden" name="token"  value="${token!}" />
    <input type="submit" class="login-btn" value="登 录">
  </form>
  </div>
  
</body>
</html>